package org.zfes.snowier.zbss.xzy.biz.solution.model;
import javax.validation.constraints.NotBlank;

import org.zfes.snowier.core.data.IBaseModel;
public class Algorithm extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public Algorithm() {}
	public Algorithm(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

	@NotBlank(message = "算法编码不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="编码长度不能超过100")
	  private java.lang.String code;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="默认名称长度不能大于100")
	  private java.lang.String name;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="备注长度不能大于100")
	  private java.lang.String remark;
	  private java.lang.Byte status;
	  private java.util.Date createTime;
	  private java.util.Date updateTime;
	@org.hibernate.validator.constraints.Length(min=0,max=2147483647,message="详细描述长度不能大于2,147,483,647")
	  private java.lang.String introduce;
 
	
	//<-------------------------------------------->
	public Algorithm setName(java.lang.String name){
		this.name=name==null?null:name.trim();
	 return this;
	}
	public java.lang.String getName(){
		return this.name;
	}
	public Algorithm setRemark(java.lang.String remark){
		this.remark=remark==null?null:remark.trim();
	 return this;
	}
	public java.lang.String getRemark(){
		return this.remark;
	}
	public Algorithm setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public Algorithm setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public Algorithm setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public Algorithm setIntroduce(java.lang.String introduce){
		this.introduce=introduce==null?null:introduce.trim();
	 return this;
	}
	public java.lang.String getIntroduce(){
		return this.introduce;
	}
	public java.lang.String getCode() {
		return code;
	}
	public void setCode(java.lang.String code) {
		this.code = code;
	}
	@Override
	public String toString() {
		return "Algorithm [code=" + code + ", name=" + name + ", remark=" + remark + ", status=" + status
				+ ", createTime=" + createTime + ", updateTime=" + updateTime + ", introduce=" + introduce + "]";
	}

}
